import React, { Component } from 'react'
import './index.css';
export default class Video extends Component {
    
    render() {
        //获取组件标签的 src 属性值
        let {src} = this.props;

        return (
            <div className="video-container" onClick={this.change}>
                <video controls src={src}></video>
            </div>
        )
    }
    
    change = () => {
        this.props.change();
    }
}
